#ifndef ETHER_DECODER_H
#define	ETHER_DECODER_H

#include "netstruct.h"
#include <string>
using namespace std;

class EtherDecoder
{
public:
	//constructor
	EtherDecoder();
	EtherDecoder(const u_char* packetcontent);
	~EtherDecoder();
	
	//Decode data
	string GetDstHost();
	string GetSrcHost();
	unsigned int GetEtherType();
	
protected:
	string hostHEX(unsigned char input[]);
	//Getting private member
	ether_header* GetEtherHead();
	
private:
	ether_header * pEtherHead;
};

#endif